//
//  YZMSuggestionListNoneCell.m
//  YZMicroStock
//
//  Created by wangminhong on 16/4/5.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZMSuggestionListNoneCell.h"

@implementation YZMSuggestionListNoneCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        
        UIView *bgView = [UIView new];
        bgView.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:bgView];
        [bgView mas_makeConstraints:^(MASConstraintMaker *maker){
            
            maker.left.right.centerX.equalTo(self.contentView);
            maker.centerY.equalTo(self.contentView).offset(-30);
        }];
        
        UIImageView *imageView = [UIImageView new];
        imageView.image = [UIImage imageNamed:@"icon_suggestion_no"];
        [bgView addSubview:imageView];
        [imageView mas_makeConstraints:^(MASConstraintMaker *maker){
            
            maker.top.centerX.equalTo(bgView);
            maker.width.mas_equalTo(130);
            maker.height.mas_equalTo(107);
        }];
        
        UILabel *label = [YZMAppStyle labelWithFont:[YZMAppStyle largeSizeFont] andColor:[YZMAppStyle colorForLightGrayText]];
        label.numberOfLines = 0;
        label.textAlignment = NSTextAlignmentCenter;
        label.text = @"提交您的问题，我们会尽快处理";
        [bgView addSubview:label];
        [label mas_makeConstraints:^(MASConstraintMaker *maker){
            
            maker.top.equalTo(imageView.mas_bottom).offset(30);
            maker.bottom.centerX.equalTo(bgView);
        }];
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    
    return self;
}


@end
